<?php
 $resultats = SQL_commande ("SELECT * FROM menus WHERE numero='".$droit_courant."' AND ordre='0'", $id_sql) ;
 $l = SQL_tableau_associatif ($resultats, "") ; 
 Echo "<html><head>" ;
 entete_html ("Garennes", "travail", 1) ;
 Echo styles ("none", "none", "none", $l ["lien"], "none") ;
 Echo "<script>function valide(){document.formulaire.chemin.value = document.formulaire.nom_1.value}</script>" ;
 Echo "</head>" ;
 Echo "<body background=\"../images/fond.png\" text=\"#000000\" onContextMenu=\"return false\">" ;
 Echo "<center><font color=\"#0000FF\">Importation&nbsp;d'une&nbsp;base&nbsp;provenant&nbsp;du&nbsp;logiciel&nbsp;de&nbsp;cr&eacute;ation&nbsp;d'EDT&nbsp;(2/3)&nbsp;</font></center>" ;
 Echo "<form action=\"./module_absences.php\" method=\"post\" name=\"forme\" onSubmit=\"javascript:valide()\" enctype=\"multipart/form-data\">" ;
 Echo "<table border=\"1\" bgcolor=\"".$l ["couleur_fond"]."\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" style=\"border:1px solid #000000;border-collapse:collapse\">" ;
 Echo "<tr><td align=\"center\" bgcolor=\"".$l ["lien"]."\">&nbsp;Indiquez&nbsp;o&ugrave;&nbsp;se&nbsp;trouve&nbsp;" ;
 If ($imp_abs_xml [0] > 1) { Echo "chacun&nbsp;des&nbsp;fichiers&nbsp;suivants" ; } Else { Echo "le&nbsp;fichier&nbsp;suivant" ; }
 Echo "&nbsp;:&nbsp;</td></tr>" ;
 Echo "<tr><td>" ;
 Echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"border-collapse:collapse\">" ;
 For ($i = 1 ; $i <= $imp_abs_xml [0] ; $i++)
  {
   If ($imp_abs_xml [$i] != "")
    {
     Echo "<tr><td colspan=\"2\">&nbsp;</td></tr>" ;
     Echo "<tr><td align=\"right\">&nbsp;<b>".$imp_abs_xml [$i]."</b>&nbsp;:&nbsp;</td><td><input type=\"file\" name=\"nom_".$i."\" size=\"50\">&nbsp;</td></tr>" ;
    }
  }
 Echo "<tr><td colspan=\"2\">&nbsp;</td></tr>" ;
 Echo "</table>" ;
 Echo "</td></tr></table>" ;
 Echo "<center>&nbsp;<input type=\"submit\" name=\"submit\" value=\" Ins&eacute;rer \"></center><br>" ;
 Echo "<input type=\"hidden\" name=\"chemin\" value=\"\">" ;
 Echo "<input type=\"hidden\" name=\"etape\" value=\"3\">" ;
 Echo "<input type=\"hidden\" name=\"type\" value=\"1\">" ;
 Echo "</form>" ;
 Echo "</body></html>" ;
?>